package com.zr.daishenpi.controller;

import com.zr.daishenpi.pojo.Paydivide;
import com.zr.daishenpi.pojo.PaydivideSelectVo;
import com.zr.daishenpi.service.PaydivideService;
import com.zr.util.AllRecords;
import com.zr.util.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @authot 谢烽
 * @create 2019 - 06 - 21 - 16:34
 */
@RestController
@CrossOrigin
@RequestMapping("/pay")
public class PaydivideController {

    @Autowired
    private PaydivideService paydivideService;

    /**
     * 分页查询
     * @param paydivideSelectVo
     * @return
     */
    @PostMapping("queryPage")
    public ResultVO<AllRecords> queryPage(@RequestBody PaydivideSelectVo paydivideSelectVo){
        return paydivideService.queryPage(paydivideSelectVo);
    }
}
